xen: arm: correctly round down MFN to 1GB boundary make sure pagetable mask macros...
authorIan Campbell <ian.campbell@citrix.com>
Thu, 10 Oct 2013 14:43:44 +0000 (15:43 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 24 Oct 2013 13:24:37 +0000 (14:24 +0100)
commit80a7e7eaa177af948b1f4cc954bf2d39ee182724
tree1a73687bedc0cdc46426b7a3ab8f50a6d30c8df2
parent8e782d0191d260c1a143f081fa0a30c2a4182aee
xen: arm: correctly round down MFN to 1GB boundary make sure pagetable mask macros as physaddr size

~FIRST_MASK is nothing like correct for rounding down an MFN. It is the
inverse *and* an address not a framenumber so wrong in every dimension! We
cannot use FIRST_MASK since that would mask off any zeroeth level bits.
Instead calculate the correct value from FIRST_SIZE.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/mm.c